function ex_ChessBlackWhite
N=8;
global Board
Board=zeros(N,N);
P1=newplayer(...
'pos',[1,1],...
'Vars',[0,0],...
'draw_player_func','CBW_draw_player',...
'draw_player_trace_func','',...
'step_func','CBW_step_player'...
)
P2=P1
G=newgame({P1,P2},...
'orders',[1,2],...
'draw',1,...
'draw_game_board_func','CBW_draw_board',...
'draw_game_finish_func','CBW_draw_game_finish',...
'axis',[0,N+1,0,N+1],...
'grid','off',...
'ontop',0,...
'pause','',...
'N_Size',N...
)
G=simgame(G)
